package cn.btks.resultintegration.catalog.pojo;

import cn.btks.resultintegration.achievements.pojo.Achievements;
import com.fasterxml.jackson.annotation.JsonBackReference;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * @Author lijun
 * @Date 2020/12/17 12:08
 *
 * 政策文件
 */
@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
public class PolicyFile {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 文件名称
     */
    @Column(columnDefinition = "varchar(255) not null")
    private String fileName;

    /**
     * 文件类型
     */
    @Column(columnDefinition = "varchar(20)")
    private String fileType;

    /**
     * 文件路径
     */
    @Column(columnDefinition = "varchar(255) not null")
    private String filePath;

    /**
     * 文件大小
     */
    protected Long fileSize;

    /**
     * 目录ID
     */
    private Long catalogId;

    /**
     * 创建者ID
     */
    private String createId;

    /**
     * 创建人姓名
     */
    private String createName;

    /**
     * 创建时间
     */
    private Date createTime;
}
